From: Florian Müllner Date: Fri, 14 Feb 2020 19:50:59 +0000 (+0100) Subject: Revert "authPrompt: Don't hide the caps lock warning label" X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~777^2^2~23 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=41da4b06816eb795803161d5d63fba5a934aba6b;p=gnome-shell.git Revert "authPrompt: Don't hide the caps lock warning label" Using the opacity to control the label's visibility doesn't work correctly, as CapsLockWarning itself changes the opacity when the caps-lock state changes. This reverts commit 9f5f6aa9b2c8f5f055a3c3b6ff2270a79c1b5e69. https://gitlab.gnome.org/GNOME/gnome-shell/issues/2215 --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 42638bee5..6edb2694a 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -205,7 +205,7 @@ var AuthPrompt = GObject.registerClass({ this._mainBox.replace_child(this._entry, this._textEntry); this._entry = this._textEntry; } - this._capsLockWarningLabel.opacity = secret ? 0 : 255; + this._capsLockWarningLabel.visible = secret; } _onAskQuestion(verifier, serviceName, question, secret) {